import MainHeader from '@/views/MainHeader.vue'

export default {
    components: {MainHeader},
    methods: {
        selectCarouselAll(){
            this.$axios.get("/carousel/selectAll").then(res=>{
                this.Carousels = res.data;
                console.log("轮播图：",this.Carousels);
            })
        }
    },

    mounted() {
        this.loginUser = JSON.parse(localStorage.getItem('user'));
        this.selectCarouselAll();
    },

    data() {
        return {
            loginUser: {
                patient: {
                    name: '',
                }
            },
            Carousels:[],
        }
    },
}
